package com.lsc.www.day06;

public class Animal {
    private String name;
    private int age;
    private String sex;

    public Animal(String name, int age, String sex) {
        setName(name);
        setAge(age);
        setSex(sex);
    }

    public Animal(){

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void move(){
        System.out.println("在地上走");
    }

    public void call(){
        System.out.println("大叫");
    }

}